﻿<telerikWindow:RadWindow  x:Class="Rio.Framework.Pages.ChildWindows.CreateAlertWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
           xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
           xmlns:telerikWindow="http://schemas.telerik.com/2008/xaml/presentation"
           mc:Ignorable="d"           
           d:DesignWidth="700" d:DesignHeight="400"
            Width="700" Height="380" 
           Header="Alert" BorderThickness="1">


    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="55" />
            <RowDefinition Height="34" />
            <RowDefinition Height="34" />
            <RowDefinition Height="34" />
            <RowDefinition Height="34" />
            <RowDefinition Height="70" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition MaxWidth="120"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <!--Menu-->
        <Border VerticalAlignment="Top" HorizontalAlignment="Stretch" Grid.Row="0" Grid.ColumnSpan="2">
            <Grid Width="680">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                    <Image Source="../Assets/Images/AlertFolder.png" Width="42" Height="42" />
                    <TextBlock Name="ValidatorMsg"  Margin="10,5,0,5" Foreground="Red" TextWrapping="Wrap" FontWeight="Bold" Width="500"  HorizontalAlignment="Stretch" Visibility="Collapsed"  />
                </StackPanel>
            </Grid>

        </Border>
        <!--message header-->

        <Button Name="ButtonTo" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,0,5,0"   Grid.Column="0" Grid.Row="1"  Click="buttonTo_Click" />
        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1">
            <TextBox Name="ToTextBox"  IsReadOnly="True" Width="400" Margin="5,5,5,5" />
            <TextBlock Name="AlertToMandatory" Text="*" Margin="0,10,5,0" Foreground="Red" HorizontalAlignment="Left"/>
        </StackPanel>
        <dataInput:Label Name="LabelAlertName"    Width="110" Height="15" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,5,0"   Grid.Column="0" Grid.Row="2" />
        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="2">
            <TextBox Name="AlertName"  Margin="5,5,5,5" MaxLength="50" Width="400" HorizontalAlignment="Left"  />
            <TextBlock Name="AlertNameMandatory" Text="*" Margin="0,10,5,0" Foreground="Red" HorizontalAlignment="Left"/>
        </StackPanel>
        <dataInput:Label Name="LabelAlertObject" Width="110" Height="15" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,5,0"   Grid.Column="0" Grid.Row="3" />
        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="3">
            <TextBox Name="ObjectTextBox" Width="400" Margin="5,5,5,5" MaxLength="256" />
            <TextBlock Name="AlertObjectMandatory" Text="*" Margin="0,10,5,0" Foreground="Red" HorizontalAlignment="Left"/>
        </StackPanel>
        <dataInput:Label Name="LabelAlertDateTime"    Width="110" Height="15" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,5,0"   Grid.Column="0" Grid.Row="4" />
        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="4">
            <telerik:RadDatePicker x:Name="AlertDateTime"  Width="400" HorizontalAlignment="Left" Margin="5,5,5,5"  />
            <TextBlock Name="AlertDateMandatory" Text="*" Margin="0,10,5,0" Foreground="Red" HorizontalAlignment="Left"/>
        </StackPanel>
        <dataInput:Label Name="LabelAlertBody" Width="110" Height="15" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="4,14,0,0" Grid.Column="0" Grid.Row="5" />
        <TextBox Name="MemoTextBox" TextWrapping="Wrap" MaxLength="8000" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Column="1" Grid.Row="5" Margin="5,5,5,5"  AcceptsReturn="True" />
        <CheckBox Visibility="Visible" Content="A cette date, suppression automatique du dossier" Height="16" HorizontalAlignment="Left" Margin="5,9,0,0" Name="chkDeleteFolder" VerticalAlignment="Top" Grid.Column="1" Grid.Row="6" />
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1" Grid.Row="7">
            <Button Name="buttonSend" Width="117" Height="30" Click="buttonSend_Click" />
            <Button Name="buttonCancel" Width="117" Height="30" Click="buttonCancel_Click" Margin="5,0,10,0" />

        </StackPanel>

    </Grid>

</telerikWindow:RadWindow >